package com.starlink.model.dtomapper;

import com.starlink.model.domain.ShoppingCartOrderDO;
import com.starlink.model.request.ShoppingCartOrderRequest;
import com.starlink.model.vo.ShoppingCartOrderVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface ShoppingCartOrderDtoMapper {

    ShoppingCartOrderDtoMapper INSTANCE = Mappers.getMapper(ShoppingCartOrderDtoMapper.class);

    /**
    * DO to VO
    * @param shoppingCartOrderDO
    * @return
    */
    ShoppingCartOrderVO do2VO(ShoppingCartOrderDO shoppingCartOrderDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    ShoppingCartOrderDO request2DO(ShoppingCartOrderRequest request);
}
